package com.yyfax.pay.third.enums.fuioudeposit;

import com.yyfax.pay.common.enums.FuiouDepositWithdrawCashWay;

/**
 * 提现方式
 * 
 * @author buyi
 * @date 2017-11-28 16:59:35
 * @since v2.0.0
 */
public enum WithdrawCashWayEnum {

	/**
	 * T+0
	 */
	T_0("0"),
	/**
	 * T+1
	 */
	T_1("1");
	private String value;

	private WithdrawCashWayEnum(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * 解析富友存管提现
	 * 
	 * @author buyi
	 * @date 2017-11-28 16:52:08
	 * @since v1.0.0
	 * @param busiType
	 * @return
	 */
	public static WithdrawCashWayEnum parse(FuiouDepositWithdrawCashWay cashWay) {
		if (FuiouDepositWithdrawCashWay.T0.equals(cashWay)) {
			return WithdrawCashWayEnum.T_0;
		} else if (FuiouDepositWithdrawCashWay.T1.equals(cashWay)) {
			return WithdrawCashWayEnum.T_1;
		}

		return null;
	}
}
